<?php
/**
 * Created by Phpstorm
 * User: 一个猫
 * Date: 2023/11/23
 * Time: 09:07
 */

namespace App\Http\Middleware;

use Closure;

class MemberAuth
{
    public function handle($request, Closure $next)
    {
        if (!auth('api')->check()) {
            return response()->json([
                'message' => '请登录',
            ], 424);
        }

        return $next($request);
    }
}
